package net.osweb.core.tools.utils.crm.jms;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.ObjectMessage;
import javax.jms.Session;

import org.springframework.jms.support.converter.MessageConversionException;
import org.springframework.jms.support.converter.MessageConverter;

/**
 * @author hgg
 * 博文<-->消息<br>
 * 转换类<br>
 */
public class StatusesCoverter implements MessageConverter{

	public Object fromMessage(Message message) throws JMSException,
			MessageConversionException {
		//ObjectMessage objMsg = (ObjectMessage)message; 
	
		
		return null;
	}

	public Message toMessage(Object obj, Session session) throws JMSException,
			MessageConversionException {
		
	
		ObjectMessage objMsg = session.createObjectMessage();  
		
		
		return objMsg;
	}  

}
